 <template>
  <div style="background: #ccc; height: 100px;">
    <h2>input包装组件</h2><br/>

    <input type="text" :value="value" @input="$emit('input',$event.target.value)"> 

    <h3>name is ：{{name}}</h3>

    
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    name: 'CustomInput',
    props: ['value','name'],
  }
</script>
